package com.ryan.route.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 旅游路线
 * </p>
 *
 * @author ryan
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TravelRoute对象", description="旅游路线")
public class TravelRoute implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "旅游路线ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "目的地ID")
    private String destId;

    @ApiModelProperty(value = "目的地父级ID")
    private String destParentId;

    @ApiModelProperty(value = "旅游路线标题")
    private String title;

    @ApiModelProperty(value = "旅游天数")
    private Integer day;

    @ApiModelProperty(value = "旅游路线主题")
    private String theme;

    @ApiModelProperty(value = "路线价格")
    private BigDecimal price;

    @ApiModelProperty(value = "路线封面")
    private String cover;

    @ApiModelProperty(value = "销售数量")
    private Long buyCount;

    @ApiModelProperty(value = "浏览数量")
    private Long viewCount;

    @ApiModelProperty(value = "乐观锁")
    private Long version;

    @ApiModelProperty(value = "1代表已上线，0代表未上线")
    private Integer status;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
